#include <stdio.h>

int main()
{
    int c;
    int ns, nt, nn;

    ns = 0;
    nt = 0;
    nn = 0;
    while ((c = getchar()) != EOF)
    {
        if (c == ' ')
        {
            ++ns;
        }
        if (c == '\t')
        {
            ++nt;
        }
        if (c == '\n')
        {
            ++nn;
        }
    }
    printf("space: %d, tab: %d, newline: %d\n", ns, nt, nn);

    return 0;
}